<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../js/echarts.js"></script>
</head>
<body>
  <div id="center" style="width: 500px;height: 500px"></div>
</body>
<script>
    var myChart = echarts.init(document.getElementById("center"));
   var option = {
        xAxis: {
            type: 'category',
            data: ['momo', 'tutu', 'bingbing', 'koko', 'xixi', 'hehe', 'haha']
        },
        yAxis: {
            type: 'value'
        },
        series: [{
            data: [200, 200, 200, 80, 70, 110, 130],
            type: 'bar',
            showBackground: true,
            backgroundStyle: {
                color: 'rgba(180, 180, 180, 0.2)'
            }
        }]
    };
   myChart.setOption(option)
</script>
</html>